<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@include file="/commons/page/codegen.jsp" %>
		<script type="text/javascript" src="${ctx}/js/plugins/artTemplate/artTemplate.js"></script>
		<script type="text/javascript" src="${ctx}/js/gpoint/rdp/doorPermission/permissionTypes.js"></script>
	</head>
	<body>
		<!-- 顶部按钮 -->
		<div class="wrapper wrapper-content  animated fadeInRight col-sm-12">
			<div class="panel-toolbar ">
				<div class="buttons">
					<a href="javascript:void(0);" class="btn btn-primary fa fa-save" ><span>保存</span></a>
					<a href="list.htm" class="btn btn-primary fa fa-back" ><span>返回</span></a>
				</div>
			</div>
			<div class="">
				<form  class="fr-form"  id="permissionTypesForm" action="save.htm" >
					<input type="hidden" name="m:permissionTypes:id"  value="${permissionTypes.id}"/>

			 <%-- 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">服务ID</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:servicecode" value="${permissionTypes.servicecode}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div> --%>
			 	<div class="fr_response_field col-sm-6" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">权限类型名称</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:permissionname" value="${permissionTypes.permissionname}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<%-- <div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">创建时间</label>
				  	<div class="fr-form-block" data-type="fixed">
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="m:permissionTypes:createTime"   value="<fmt:formatDate value="${permissionTypes.createTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">创建人</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:createBy" value="${permissionTypes.createBy}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-6" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">更新时间</label>
				  	<div class="fr-form-block" data-type="fixed">
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="m:permissionTypes:updateTime"   value="<fmt:formatDate value="${permissionTypes.updateTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">更新人</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:updateBy" value="${permissionTypes.updateBy}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">IP地址</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:ip" value="${permissionTypes.ip}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-6" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">扩展字段</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:ext1" value="${permissionTypes.ext1}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">扩展字段</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:ext2" value="${permissionTypes.ext2}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">扩展字段</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:ext3" value="${permissionTypes.ext3}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div> --%>
				<div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">备注</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:permissionTypes:note" value="${permissionTypes.note}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div> 
				<div class="fr_response_field col-sm-6" >
			 	<div class="fr-form-group"> 
				 	
				  	<div class="fr-form-block" data-type="fixed">
				<input   type="hidden" type="text" class="fr-form-control" name="m:permissionTypes:doorcount" value="${permissionTypes.doorcount}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div> 
			 	 <div class="fr_response_field col-sm-3" >
			 	<div class="fr-form-group"> 
				 	
				  	<div class="fr-form-block" data-type="fixed">
				<input  type="hidden" type="text"   class="fr-form-control" name="m:permissionTypes:usercount" value="${permissionTypes.usercount}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div> 
			  
	  		<%-- <table name="s:" data-mode="inner" data-required="" class="table table-bordered table-hover table-condensed">
			<caption>
				<div class="fr-table-header-label">TB_DOOR_DOORPERMISSTYPE</div>
				<div class="fr-table-tools">
							<a class="btn btn-primary fa fa-add js-add-record"  data-type="add"  href="javascript:void(0);">添加</a>
							<a class="btn btn-danger fa fa-remove js-remove-record"  data-type="remove"  href="javascript:void(0);">删除</a>
				</div>
			</caption>
			<thead>
				<tr>
		     		 <th class="fr_table_col_checkbox" width="45px"><input role="checkbox" class="checkAll" name="s:" type="checkbox"></th>
	       			 <th>服务ID</th>
	       			 <th>保存的时候是带有设备的例如:SN-001</th>
	       			 <th>时间段</th>
	       			 <th>权限类型ID</th>
	       			<!--  <th>创建时间</th>
	       			 <th>创建人</th>
	       			 <th>更新时间</th>
	       			 <th>更新人</th>
	       			 <th>IP地址</th>
	       			 <th>扩展字段</th>
	       			 <th>扩展字段</th>
	       			 <th>扩展字段</th> -->
		      	<th class="fr_table_col_remove" width="45px">管理</th>
		    </tr>
			</thead>
			<tbody>	
				<c:forEach varStatus="stat" var="permissionType" items="${permissionTypes.doorPermissonTypePoList}">	
					<tr>	
						<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::servicecode:${stat.index+1}" value="${permissionType.servicecode}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::snDoor:${stat.index+1}" value="${permissionType.snDoor}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::timePhase:${stat.index+1}" value="${permissionType.timePhase}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::permisstypeid:${stat.index+1}" value="${permissionType.permisstypeid}" validate="{required:false}"/> --%>
												</td>	
			<%-- 	 		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:${stat.index+1}"   value="<fmt:formatDate value="${permissionType.createTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::createBy:${stat.index+1}" value="${permissionType.createBy}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:${stat.index+1}"   value="<fmt:formatDate value="${permissionType.updateTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::updateBy:${stat.index+1}" value="${permissionType.updateBy}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ip:${stat.index+1}" value="${permissionType.ip}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext1:${stat.index+1}" value="${permissionType.ext1}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext2:${stat.index+1}" value="${permissionType.ext2}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext3:${stat.index+1}" value="${permissionType.ext3}" validate="{required:false}"/>
												</td>	 --%>
				<%-- 		<td class="fr_table_col_remove" width="45px">
									
								<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
						</td>
					</tr>
				</c:forEach>
			</tbody> 
		</table>
		
	<script type="text/html" id="s::TrTemplate">
	<%--  
		<tr>
		  	<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
	 	 	 	<td>
				<input type="text" class="fr-form-control" name="s::servicecode:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::snDoor:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::timePhase:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::permisstypeid:{{idx}}"  validate="{required:false}"/>
			</td>

<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::createBy:{{idx}}"  validate="{required:false}"/>
			</td>

<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::updateBy:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ip:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext1:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext2:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext3:{{idx}}"  validate="{required:false}"/>
			</td>

		  	<td class="fr_table_col_remove" width="45px">
				<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
			</td>
		</tr>
	</script>
	  		<table name="s:" data-mode="inner" data-required="" class="table table-bordered table-hover table-condensed">
			<caption>
				<div class="fr-table-header-label">TB_DOOR_PERMISSTYPEANDUSER</div>
				<div class="fr-table-tools">
							<a class="btn btn-primary fa fa-add js-add-record"  data-type="add"  href="javascript:void(0);">添加</a>
							<a class="btn btn-danger fa fa-remove js-remove-record"  data-type="remove"  href="javascript:void(0);">删除</a>
				</div>
			</caption>
			<thead>
				<tr>
		     		 <th class="fr_table_col_checkbox" width="45px"><input role="checkbox" class="checkAll" name="s:" type="checkbox"></th>
	       			 <th>服务ID</th>
	       			 <th>用户ID</th>
	       			 <th>权限类型ID</th>
	       			<!--  <th>创建时间</th>
	       			 <th>创建人</th>
	       			 <th>更新时间</th>
	       			 <th>更新人</th>
	       			 <th>IP地址</th>
	       			 <th>扩展字段</th>
	       			 <th>扩展字段</th>
	       			 <th>扩展字段</th> -->
	       			 <th>状态 未授权是0  已授权是1  取消 2 默认插入的数据是未授权 0</th>
		      	<th class="fr_table_col_remove" width="45px">管理</th>
		    </tr>
			</thead>
			<tbody>	
				<c:forEach varStatus="stat" var="permissionType" items="${permissionTypes.permissTypeAndUserPoList}">	
					<tr>	
						<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::servicecode:${stat.index+1}" value="${permissionType.servicecode}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::useruid:${stat.index+1}" value="${permissionType.useruid}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::permisstypeid:${stat.index+1}" value="${permissionType.permisstypeid}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:${stat.index+1}"   value="<fmt:formatDate value="${permissionType.createTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::createBy:${stat.index+1}" value="${permissionType.createBy}" validate="{required:false}"/>
												</td>	
				<%--  		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:${stat.index+1}"   value="<fmt:formatDate value="${permissionType.updateTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::updateBy:${stat.index+1}" value="${permissionType.updateBy}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ip:${stat.index+1}" value="${permissionType.ip}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext1:${stat.index+1}" value="${permissionType.ext1}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext2:${stat.index+1}" value="${permissionType.ext2}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext3:${stat.index+1}" value="${permissionType.ext3}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::status:${stat.index+1}" value="${permissionType.status}" validate="{required:false}"/>
												</td>	 
						<td class="fr_table_col_remove" width="45px">
									
								<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		
	<script type="text/html" id="s::TrTemplate">
	<%--  
		<tr>
		  	<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
	 	 	 	<td>
				<input type="text" class="fr-form-control" name="s::servicecode:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::useruid:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::permisstypeid:{{idx}}"  validate="{required:false}"/>
			</td>
 	
<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::createBy:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::updateBy:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ip:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext1:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext2:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext3:{{idx}}"  validate="{required:false}"/>
			</td> 
<td>
				<input type="text" class="fr-form-control" name="s::status:{{idx}}"  validate="{required:false}"/>
			</td>
		  	<td class="fr_table_col_remove" width="45px">
				<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
			</td>
		</tr>--%>
	<!-- </script> -->
	
</form>

			</div>
		</div>
	</body>
</html>